package com.blb.test.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.blb.test.entity.User;
import com.blb.test.service.UserService;

@Controller
public class UserController {
	
	@Autowired
	private UserService userService;

	@ResponseBody
	@RequestMapping("test")
	public List<User> test(){
		return userService.getUsers();
	}
}
